import request from './request';
import { getRefreshToken } from './token';

export async function refreshToken() {
  console.log('刷新token');
  await request.get('/refresh_token', {
    headers: {
      Authorization: `Bearer ${getRefreshToken()}`
    },
    __isRefreshToken: true, // 添加私有属性，判断请求是否刷新token
  })
}
